//
//  QHTOrderButton.h
//  B2CStore
//
//  Created by 陶磊 on 2020/2/11.
//  Copyright © 2020 QHT. All rights reserved.
//

#define SPColor(r,g,b,a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]

#import <UIKit/UIKit.h>

typedef void (^CLCWActionBlock)(void);
NS_ASSUME_NONNULL_BEGIN

@interface QHTOrderButton : UIButton


@property (nonatomic, copy) IBInspectable NSString *btnType;

@property (nonatomic, copy) NSDictionary *data;

@property (nonatomic) id model;

@property (nonatomic, copy) CLCWActionBlock actionBlock;

@property (nonatomic) NSInteger badgeValue;

@property (nonatomic, assign) BOOL isRedBall;
@property (nonatomic, strong) UILabel *badgeLab;

- (void)handleControlEvent:(UIControlEvents)event
                 withBlock:(CLCWActionBlock) action;

@end

NS_ASSUME_NONNULL_END
